#pragma once

class CUserInfo
{

public:
	CUserInfo(void);
	CUserInfo(const CUserInfo &UserInfo);
	void GetUserInfo(CUserInfo &UserInfo);
	void SetID(const char *szID);
	void SetNickName(const char *szNickName);
	void SetPassword(const char *szPassword);
	void OnLine();
	void OffLine();

	char *GetID();
	char *GetNickName();
	char *GetPassword();
	int GetStatus();

	int operator == (const CUserInfo &UserInfo);
	int operator == (const char *szID);

	~CUserInfo(void);
private:
	char m_szID[32];
	char m_szNickName[32];
	char m_szPassword[32];
	int m_nStatus;
};
